{template 'common/header'}


<div class="pull-left col-sm-2 caidan" >
		{template 'left_nav'}
	</div>
	
	<div class="pull-left col-sm-10" >



<div class="we7-page-title">导航菜单-{$setting_id}</div>
<link rel="stylesheet" type="text/css" href="{MODULE_URL}template/style/main.css">

<div class="btn btn-success add-article">
		<a href="{php echo url('site/entry/NavEdit', array('m' => 'yts_qiye','setting_id' => $setting_id));}">新增导航</a>
		
	</div>
	<table class="table table-striped table-bordered table-hover">
			<thead>
			<tr >
				<th>ID</th>
				<th>标题</th>
		
				<th>类型</th>
				<th>跳转地址/电话</th>
				<th>排序</th>
				<th>未选中ICON</th>
				<th>已选中ICON</th>
				<th>提交时间</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			
			{loop $info $index $item}
			
			<tr>
				<td>{$item['id']}</td>
				<td>{$item['name']}</td>
				<td>{if $item['type'] == 1}小程序内{elseif $item['type'] == 2}外部链接{elseif $item['type'] == 3}电话{/if}</td>
				<td>
					{if $item['type'] == 3}
						{$item['phone']}
					{else}
						{$item['url']}
					{/if}

				</td>
				<td>{$item['sort']}</td>
				<td class="text-center"><img class="pic" src="{$item['img']}"></td>
				<td class="text-center"><img class="pic" src="{$item['selimg']}"></td>
				<td>{php echo date('Y-m-d H:i:s', $item['add_time'])}</td>
				<td>
		
						<a href="{php echo $this->createWebUrl('Navdel',array('id' => $item['id']))}" onclick="return confirm('你确定要删除吗？')" 
								class="btn btn-danger">删除</a>
		
					<a class="btn btn-success" href="{php echo url('site/entry/NavEdit', array('m' => 'yts_qiye','id'=>$item['id'],'op'=>'edit','setting_id'=>$setting_id));}">编辑</a>
				</td>
			</tr>
			{/loop}
			</tbody>
		</table>
		<div class="showPage">{$_pagination_var}</div>

</div>
{template 'common/footer'}